<?php /* Smarty version Smarty-3.1.6, created on 2018-05-22 16:15:11
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\Order\tocomment.html" */ ?>
<?php /*%%SmartyHeaderCode:17312320985b02f310035df1-70255917%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7b2bd624eab045c649df0f4a759455372fa93137' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\\Order\\tocomment.html',
      1 => 1526976878,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17312320985b02f310035df1-70255917',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5b02f31010187',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5b02f31010187')) {function content_5b02f31010187($_smarty_tpl) {?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>升级为商家</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="<?php echo @PUBLIC_PATH;?>
css/amazeui.min.css"/>
<link rel="stylesheet" href="<?php echo @IMAGES_PATH;?>
style.css"/>
<script src="<?php echo @PUBLIC_PATH;?>
js/jquery.min.js"></script>
<script src="<?php echo @PUBLIC_PATH;?>
js/amazeui.min.js"></script>
<style type="text/css">
	.star i{
		margin: 20px;
		position: none;
		color:#f09513;
	}
	textarea{
	    display: block;
	    width: 100%;
	    padding: .5em;
	    font-size: 1.6rem;
	    line-height: 1.2;
	    color: #555;
	    vertical-align: middle;
	    background-color: #fff;
	    background-image: none;
	    border: 1px solid #ccc;
	    border-radius: 0;
	    -webkit-appearance: none;
	    -webkit-transition: border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
	    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	}
</style>
</head>

<body>
<div class="container">
	<!--引入头文件-->
	<?php echo $_smarty_tpl->getSubTemplate ("../header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	<script>$('.title-link').text("发表评论")</script>
    
	<div class="cart-panel">
		<form action="<?php echo @__SELF__;?>
" method="post" enctype="multipart/form-data">
        
        <div class="am-form-group star">
        	<label style="font-size: 2rem;">评星：</label>
        	<i class="am-icon-star am-icon-star-o am-icon-md" ></i>
        	<i class="am-icon-star am-icon-star-o am-icon-md" ></i>
        	<i class="am-icon-star am-icon-star-o am-icon-md" ></i>
        	<i class="am-icon-star am-icon-star-o am-icon-md" ></i>
        	<i class="am-icon-star am-icon-star-o am-icon-md" id="allstar"></i>
        </div>
        
        <input style="display: none;" id="score" value="" name="score" />
        
        <!--<div class="am-form-group am-form-icon ">
        	<i class="am-icon-home" style="color:#329cd9"></i>
        	<input type="text" class="am-form-field  my-radius" placeholder="请输入评论内容">
        </div>-->
        <div class="am-form-group">
              <textarea class="" name="content" rows="3" id="doc-ta-1" placeholder="亲，您的评价对其他买家有很大帮助" required=""></textarea>
        </div>
        
        <div class="withdrawals-panel" style="display: none;">
            <p class="am-text-center"><img src="<?php echo @IMAGES_PATH;?>
qrcode.jpg" class="qrcode-qrcode" /></p>
        </div>
        
        <div class="am-form-group am-form-file">
          <div>
            <button type="button" class="am-btn am-btn-default am-btn-sm">
              <i class="am-icon-credit-card" style="color:#78c3ca"></i> 上传图片</button>
          </div>
          <input type="file" class="images" name="images" id="images">
        </div>
        
        <p class="am-text-center"><button type="submit" class="am-btn am-btn-danger am-radius submit">发表评论</button></p>
       </form>
    </div>
    
    
    <footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
      <div class="am-footer-miscs ">
        <p>CopyRight©2014 AllMobilize Inc.</p>
        <p>京ICP备13033158</p>
      </div>
    </footer>
    <!--底部-->
    <?php echo $_smarty_tpl->getSubTemplate ("../footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>
<script type="text/javascript">
	window.onload=function(){
		$('#allstar').trigger('click');
	}
	$('.star i').click(function () { //评星
                $(this).removeClass('am-icon-star-o').addClass('active-star')
                    .prevAll().removeClass('am-icon-star-o').addClass('active-star');
                $(this).nextAll().addClass('am-icon-star-o').removeClass('active-star');
               $('#score').val($('.active-star').length-1);
            });
//  $('.submit').click(function (){
//  	alert($('.active-star').length-1);
//  })
	$('.images').change(function(){ //预览图片
		  var src=window.URL.createObjectURL(document.getElementById('images').files[0]);
		  $('.qrcode-qrcode').attr('src',src);
		  $('.withdrawals-panel').fadeIn();
		});
</script>
</body>
</html>
<?php }} ?>